package io.openkunlun.javadsl;

import io.grpc.Status;

public interface DaprExceptionResolver {

    DaprExceptionResolver DEFAULT = e -> Status.INTERNAL.withDescription(e.getMessage()).asException();

    /**
     * @param e
     * @return
     */
    Exception resolve(Exception e);
}
